package cn.tsmchina.one.util;

/**
 * 创建订单编号
 * @author  YUE
 * @date 2013-7-6 上午10:22:00
 */
public final class OrderUtil
{
	private static final Object object = new Object();
	
	/**
	 * 创建订单号
	 * @return
	 */
	public static Long createOrderId()
	{
		synchronized (object)
		{
			try
			{
				Thread.sleep(1);
			}
			catch (InterruptedException e)
			{
			}
		 	return System.currentTimeMillis();
		}
	}

}
